<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Type_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_select('row[type_id]', $typedata, $row.type_id, ['class'=>'form-control', 'required'=>''])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Url')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-url" class="form-control" size="50" name="row[url]" type="text"
                    value="{$row.url|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-url" class="btn btn-danger faupload" data-input-id="c-url"
                            data-multiple="false" data-preview-id="p-url"
                            data-mimetype="video/mp4,video/avi,video/mpeg,video/webm"><i class="fa fa-upload"></i>
                            {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-url" class="btn btn-primary fachoose" data-input-id="c-url"
                            data-multiple="false" data-mimetype="video/mp4,video/avi,video/mpeg,video/webm"><i
                                class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-url"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-url"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('是否原创')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                {foreach name="isOriginalList" item="vo"}
                <label for="row[is_original]-{$key}"><input id="row[is_original]-{$key}" name="row[is_original]"
                        type="radio" value="{$key}" {in name="key" value="normal" }checked{/in} /> {$vo}</label>
                {/foreach}
            </div>
        </div>
    </div>
    <div class="form-group" data-favisible="is_original=0">
        <label class="control-label col-xs-12 col-sm-2">{:__('视频地址')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-source" data-rule="required" class="form-control editor" rows="5" name="row[source]"
                cols="50">{$row.source|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group" data-favisible="is_original=0">
        <label class="control-label col-xs-12 col-sm-2">{:__('视频链接')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-source_url" class="form-control" name="row[source_url]" type="text"
                value="{$row.source_url|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                {foreach name="statusList" item="vo"}
                <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio"
                        value="{$key}" {in name="key" value="$row.status" }checked{/in} /> {$vo}</label>
                {/foreach}
            </div>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>